import Vue from "vue"
import App from "./App"
Vue.config.productionTip = false;

//导入路由
import router from "@/router"
//导入store 
import store from "./store";


//导入typenav 
import TypeNav from "@/components/TypeNav"
import Pagination from "@/components/Pagination"
//全局注册组件
Vue.component("TypeNav",TypeNav)
Vue.component("Pagination",Pagination)
//导入mock
import "@/mock"


new Vue({
    el:"#app",
    router,
    store,
    beforeCreate(){
        Vue.prototype.$bus=this
    },
    render:h => h(App)
})